<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"  
      xmlns:h="http://java.sun.com/jsf/html"  
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:c="http://java.sun.com/jsp/jstl/core"> 

    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

        <title>Inicial</title>
        <link href="br.css/style.css" rel="stylesheet" type="text/css" media="screen" />
    </h:head>

    <h:body>        
        <h:form>
            <div id="corpoSite">

                <div id="cabecalho">
                    <img src="img/Logo.jpg" style="width: 400px; height: 100px; padding-top: 10px;" />
                </div>
                <div id="menu">

                </div> 
                <div id="content">
                    <div id="firstHeading">
                    
                    </div>
                    
                    <div class="mapa">
                        <br />
                        <p:breadCrumb>  
                            <p:menuitem value="Index" action="index.xhtml" ajax="false" />
                        </p:breadCrumb>
                    </div>
                    <hr />
                    <div id="conteudo">

                        <h:outputLink id="loginLink" value="javascript:void(0)" onclick="dlg.show()" title="login" style="margin-right: 10px;">     
                            <p:commandButton value="Logar" />  
                        </h:outputLink>

                        <p:commandButton ajax="false" action="pagina_cadastro_usuarios.xhtml" value="Cadastrar" />

                        <p:growl id="growl" showDetail="true" life="3000" />

                        <p:dialog id="dialog" header="Login" widgetVar="dlg">

                            <h:form>  

                                <h:panelGrid columns="2" cellpadding="5">  
                                    <h:outputLabel for="username" value="Username: *" />  
                                    <p:inputText value="#{rFacesUsers.login}"   
                                                 id="username" required="false" label="username" size="10" />  

                                    <h:outputLabel for="password" value="Password: * " />  
                                    <p:password id="password" value="#{rFacesUsers.senha}" feedback="false" minLength="2" required="false" label="password" size="10" />
                                

                                    <f:facet name="footer">  
                                        <p:commandButton value="Login" update="growl"   
                                                         ajax="false" action="#{rFacesUsers.login(actionEvent)}"   
                                                         oncomplete="handleLoginRequest(xhr, status, args)" style="text-align: center"/>  
                                    </f:facet>  
                                </h:panelGrid>  

                            </h:form>  
                        </p:dialog>


                    </div>
                    <div id="footer">

                        <hr />
                        <div class="left">
                            Novembro 2011. All rights reserved.<br />Referência: <a href="http://http://localhost:8080/wabt/" target="_blank">WabT</a>            
                        </div>
                        <div class="right">
                            Trabalho final de Projeto Integrador e Modelagem Web
                        </div>
                    </div>
                    <div class="right"></div>
                </div>
            </div>

        </h:form>
    </h:body>
</html>

